package zzti.com.Presenter;

import android.view.View;
import android.widget.AdapterView;

import zzti.com.View.MainActivity;

/**
 * Created by ASUS-PC on 2016/4/14.
 */
public class onitemclick implements AdapterView.OnItemClickListener {
    public MainActivity activity;

    public onitemclick(MainActivity activity) {
        this.activity = activity;
    }

    @Override
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {

        if (position == 1) {
            activity.setWeiXin();

        }if(position==0){
            activity.setNotification();
        }
    }
}